import request from '@/utils/request'

// 查询改进项目列表
export function listOptimize(query) {
  return request({
    url: '/project/optimize/list',
    method: 'get',
    params: query
  })
}

// 查询改进项目详细
export function getOptimize(id) {
  return request({
    url: '/project/optimize/' + id,
    method: 'get'
  })
}

// 新增改进项目
export function addOptimize(data) {
  return request({
    url: '/project/optimize',
    method: 'post',
    data: data
  })
}

// 修改改进项目
export function updateOptimize(data) {
  return request({
    url: '/project/optimize',
    method: 'put',
    data: data
  })
}

// 删除改进项目
export function delOptimize(id) {
  return request({
    url: '/project/optimize/' + id,
    method: 'delete'
  })
}
